!macro preInit
    SetRegView 64
    WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\HaisumClouds\Works"
    WriteRegExpandStr HkCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\HaisumClouds\Works"
    SetRegView 32
    WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\HaisumClouds\Works"
    WriteRegExpandStr HkCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\HaisumClouds\Works"
!macroend

!macro customInstall
  File /oname=$PLUGINSDIR\CitrixWorkspaceApp.exe "${BUILD_RESOURCES_DIR}\CitrixWorkspaceApp.exe"
  File /oname=$PLUGINSDIR\SimCloudTransferSetup.exe "${BUILD_RESOURCES_DIR}\SimCloudTransferSetup.exe"
  File /oname=$PLUGINSDIR\3DCloudClientSetup_6.5.9.0421-x64.exe "${BUILD_RESOURCES_DIR}\3DCloudClientSetup_6.5.9.0421-x64.exe"
  ExecWait '"$PLUGINSDIR\CitrixWorkspaceApp.exe"'
  ExecWait '"$PLUGINSDIR\SimCloudTransferSetup.exe"'
  ExecWait '"$PLUGINSDIR\3DCloudClientSetup_6.5.9.0421-x64.exe"'
!macroend
